package com.rdc.example.dao;

import com.rdc.example.entity.News;

import java.util.List;

public interface NewsDao {
    boolean insert(News news) throws Exception;

    boolean batchInsertMessages(int senderId, String content, List<Integer> receiverIds) throws Exception;

    boolean updateNews(Integer id) throws Exception;

    List<News> getNewsListByReceiverId(Integer receiverId, Integer pageBegin, Integer pageSize) throws Exception;

    Integer countNewsByReceiverId(Integer receiverId) throws Exception;
}
